projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7e5f5b
)
a11y: Don't re turn uninitialized memory
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 22 Mar 2020 01:06:35 +0000
(21:06 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 22 Mar 2020 01:44:23 +0000
(21:44 -0400)
For some reason, this was now showing up in the
a11y tests as random image sizes in the about
dialog test.
gtk/a11y/gtkimageaccessible.c
patch
|
blob
|
history
diff --git
a/gtk/a11y/gtkimageaccessible.c
b/gtk/a11y/gtkimageaccessible.c
index 99a27a658a4bae30ec630963f4ab50e68ff065b6..e299f3d4cc62048a66f9611aab28f2506dae1019 100644
(file)
--- a/
gtk/a11y/gtkimageaccessible.c
+++ b/
gtk/a11y/gtkimageaccessible.c
@@
-309,6
+309,11
@@
gtk_image_accessible_get_image_size (AtkImage *image,
if (gtk_image_get_storage_type (gtk_image) != GTK_IMAGE_EMPTY)
gtk_image_get_image_size (gtk_image, width, height);
+ else
+ {
+ *height = 0;
+ *width = 0;
+ }
}
static gboolean